package com.tanhua.bg;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;

@MapperScan("com.tanhua") //设置mapper接口的扫描包
@SpringBootApplication
@ComponentScan(basePackages = "com.tanhua")//设置默认的包扫描
public class BgApplication {

    public static void main(String[] args) {
        SpringApplication.run(BgApplication.class, args);
}
}
